// @ts-ignore
/* eslint-disable */

/**
 * 请勿随意修改。
 * */

import { request, type RequestOptions } from '@/utils/request'

/** 话题库列表获取一级分类列表 GET /meereen/topic/tGetClassificationListFirst */
export async function classTopicFirst(params: API.PageParams, options?: RequestOptions) {
  return request(`/meereen/classification/getClassificationList`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 查看分类 GET /meereen/topic/tGetClassificationListFirst */
export async function classTopicList(params: API.PageParams, options?: RequestOptions) {
  return request(`/meereen/classification/echoClassificationList`, {
    method: 'GET',
    params: {
      ...params
    },
    ...(options || {})
  })
}


/** 增加分类 POST /meereen/topic/tGetClassificationListFirst */
export async function classTopicAdd(body: API.AddClassTopicParams, options?: RequestOptions) {
  return request(`/meereen/classification/addClassificationList`, {
    method: 'POST',
    data: body,
    ...(options || {})
  })
}


/** 删除分类 POST /meereen/classification/deleteClassificationList */
export async function classTopicDelete(body: API.DelClassTopicParams, options?: RequestOptions) {
  return request(`/meereen/classification/deleteClassificationList`, {
    method: 'POST',
    data: body,
    ...(options || {
      successMsg:"删除成功",
      showSuccessMsg: true
    })
  })
}


